package com.yanyilu.basing.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-28
 */
@Data
@Accessors(chain = true)
@TableName("admin_user")
public class AdminUser extends Model<AdminUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 管理员id
     */
    @TableId(value = "admin_user_id", type = IdType.AUTO)
    private Integer adminUserId;

    /**
     * 账号
     */
    @TableField("admin_user_name")
    private String adminUserName;

    /**
     * 密码
     */
    @TableField("admin_user_password")
    private String adminUserPassword;

    /**
     * 权限
     */
    private Integer role;


    @Override
    protected Serializable pkVal() {
        return this.adminUserId;
    }

}
